package com.cg.design.graphicdesignpattern.adapter;

/**
 * @program: LeetCode->Banner
 * @description: 被适配
 * @author: cg
 * @create: 2022-03-17 21:26
 **/
public class Banner {
    private String name;

    public Banner(String name) {
        this.name = name;
    }

    public void showWithParen() {
        System.out.println("(" + name + ")");
    }

    public void showWithAster() {
        System.out.println("*" + name + "*");
    }

}
